<%@ page language="java" contentType="text/html; charset=utf-8"
    %><%@page import="com.dw.system.gdb.*,org.shmsa.psc.*,com.thoughtworks.xstream.XStream,com.thoughtworks.xstream.io.xml.DomDriver"%><%
    XStream xstream = new XStream(new DomDriver());
	PscItem psc=(PscItem)GDB.getInstance().getXORMObjByPkId(PscItem.class,"00G2IRN6WD000102CB0KE7MF");
	xstream.alias("PscItem", PscItem.class);
	String xml=xstream.toXML(psc);
    //out.print(xml);这样也可以，字符串将以contentType="text/html; charset=utf-8"这里的utf-8编码为字节数组传送给客户端
    response.getOutputStream().write(xml.getBytes("utf-8"));//这里必须为utf-8，与contentType="text/html; charset=utf-8"一致。因为Android平台默认字符集为utf-8，所以在Android客户端直接使用new String(byte[])即可
    %>